Built-in module md5

md5 This module implements the interface to RSA's MD5 message digest algorithm (see also the file md5.doc). Its use is quite straightforward: use the function md5 to create an md5-object. You can now ``feed'' this object with arbitrary strings. At any time you can ask for the ``final'' digest of the object. Internally, a temporary copy of the object is made and the digest is computed and returned. Because of the copy, the digest operation is not destructive for the object. Before a more exact description of the module's use, a small example will be helpful: to obtain the digest of the string 'abc', use ...
>>> from md5 import md5
>>> m = md5()
>>> m.update('abc')
>>> m.digest()
'\220\001P\230<\322O\260\326\226?}(\341\177r'
More condensed:
>>> md5('abc').digest()
'\220\001P\230<\322O\260\326\226?}(\341\177r'

\begin{funcdesc}{md5}{\optional{arg}}
 Create a new md5-object. If \var{arg} is ...
...itial
 \code{update} method is called with \var{arg} as argument.
\end{funcdesc}
An md5-object has the following methods:
\begin{funcdesc}{update}{arg}
 Update this md5-object with the string \var{arg}.
\end{funcdesc}
digest